package com.itheima.project.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.ControllerAdvice;

//开启配置注解
@Configuration
//开启自动aop注解
@EnableAspectJAutoProxy
//启动自动事务注解
@EnableTransactionManagement
//配置扫描指定包下面的注解
@ComponentScan(basePackages = "com.itheima.project",excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class,ControllerAdvice.class})})
public class springConfig {
}
